#include <stdlib.h>

#include "Particle.h"

Particle::Particle()
{
    init();
    position = make_float3(0,0,0);
}

Particle::Particle( float px, float py, float pz )
{
    init();
    position = make_float3(px, py, pz);
}

void Particle::init()
{
    red   = rand()/(float)RAND_MAX;
    green = rand()/(float)RAND_MAX;
    blue  = rand()/(float)RAND_MAX;

    velocity = make_float3(0,0,0);
    force    = make_float3(0,0,0);
}